package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * UserBroadMessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_broad_message", catalog = "imcdbserver")
public class UserBroadMessage implements java.io.Serializable {

	// Fields

	private UserBroadMessageId id;
	private Integer haveread;

	// Constructors

	/** default constructor */
	public UserBroadMessage() {
	}

	/** minimal constructor */
	public UserBroadMessage(UserBroadMessageId id) {
		this.id = id;
	}

	/** full constructor */
	public UserBroadMessage(UserBroadMessageId id, Integer haveread) {
		this.id = id;
		this.haveread = haveread;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "num", column = @Column(name = "num", nullable = false)) })
	public UserBroadMessageId getId() {
		return this.id;
	}

	public void setId(UserBroadMessageId id) {
		this.id = id;
	}

	@Column(name = "haveread")
	public Integer getHaveread() {
		return this.haveread;
	}

	public void setHaveread(Integer haveread) {
		this.haveread = haveread;
	}

}